dataSource {
    pooled = true
    driverClassName = "com.mysql.jdbc.Driver"
    properties {
        maxActive = 50
        maxIdle = 25
        minIdle = 1
        initialSize = 1
        minEvictableIdleTimeMillis = 60000
        timeBetweenEvictionRunsMillis = 60000
        numTestsPerEvictionRun = 3
        maxWait = 10000
        testOnBorrow = true
        testWhileIdle = true
        testOnReturn = true
        validationQuery = "select now()"
    }
}
hibernate {
    cache.use_second_level_cache=true
    cache.use_query_cache=true
    cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider'
    show_sql=false
}
// environment specific settings
environments {
    development {
        dataSource {
            pooled=true
            dbCreate = "update" // one of 'create', 'create-drop','update'
            url = "jdbc:mysql://ec2-50-19-213-178.compute-1.amazonaws.com/aldea"
            username = "ronald"
            password = "12345"
           
        }
    }
    test {
        dataSource {
            dbCreate = "update" // one of 'create', 'create-drop','update'
            url = "jdbc:mysql://ec2-50-19-213-178.compute-1.amazonaws.com/aldea"
            username = "ronald"
            password = "12345"
        }
    }
    production {
        dataSource {
            dbCreate = "update" // one of 'create', 'create-drop','update'
            url = "jdbc:mysql://ec2-50-19-213-178.compute-1.amazonaws.com/aldea"
            username = "ronald"
            password = "12345"
        }
        
    } 
}